﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebUI.Controllers
{
    public class ForumController : Controller
    {
        //
        // GET: /Forum/

        public ActionResult Index()
        {
            return View();
        }


        /// <summary>
        /// 分页加载板块信息
        /// </summary>
        /// <param name="page">页码</param>
        /// <param name="rows">页大小</param>
        /// <param name="order">排序字段</param>
        /// <param name="sort"></param>
        /// <returns>用户信息</returns>
        public JsonResult LoadAllByPage(int page, int rows, string order, string sort)
        {
            return Json("");
        }

        /// <summary>
        /// 查询或者增加板块视图
        /// </summary>
        /// <param name="id">板块编码</param>
        /// <returns>板块视图</returns>
        public ActionResult ForumInfoView(int? id)
        {
            return View();
        }

        /// <summary>
        /// 保存板块信息
        /// </summary>
        /// <param name="forumInfo">板块信息</param>
        /// <returns>保存状态</returns>
        public JsonResult Save(string forumInfo)
        {
            return Json("test");
        }

        /// <summary>
        /// 删除板块列表信息
        /// </summary>
        /// <param name="list">列表信息</param>
        /// <returns>删除状态</returns>
        public JsonResult Del(string[] list)
        {
            return Json("test");
        }

    }
}
